package com.zhc.dejingapi.controller;


import com.zhc.dejingapi.entity.vo.EqStsVo;
import com.zhc.dejingapi.service.RealtimeService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhc
 * @since 2024-08-09
 */
@RestController
@RequestMapping("/realtime-entity")
@CrossOrigin
public class RealtimeController {

    //@Resource
    private final RealtimeService realtimeService;

    public RealtimeController(RealtimeService realtimeService1) {
        this.realtimeService = realtimeService1;
    }

    @PostMapping("/getEqStsCount")
    public EqStsVo getEqStsCount(){
        return realtimeService.selectStatusCount();
    }
}
